import sys
from PyQt5 import QtWidgets
import mysql.connector
from src.Log_Win import Log_Win
def myclose(l,app):
    l.mydb.close()
    app.exec_()

if __name__=='__main__':
    app=QtWidgets.QApplication(sys.argv)
#创建登录窗口
    l=Log_Win()
    l.setWindowTitle("登录")

    l.show()
    sys.exit(myclose(l,app))